package org.gilgamesh.stool.search.es.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * ES查询的Must条件或should条件
 *
 * @author Gilgamesh
 * @since 2021-08-20
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BoolParam implements Serializable {

    private static final long serialVersionUID = 761947700371159902L;

    /**
     * 索引中的字段名称
     **/
    private String field;

    /**
     * 字段值
     **/
    private List<Object> values;
}
